home *** CD-ROM | disk | FTP | other *** search
- Path: pegasus.montclair.edu!hubey
- From: hubey@pegasus.montclair.edu (H. M. Hubey)
- Newsgroups: comp.sys.amiga.programmer
- Subject: SAS/Lattice C question
- Date: 12 Jan 1996 21:41:53 -0500
- Organization: Montclair State University
- Message-ID: <hubey.821500755@pegasus.montclair.edu>
- References: <4d17sv$146$1@mhadg.production.compuserve.com>
- NNTP-Posting-Host: pegasus.montclair.edu
- X-Newsreader: NN version 6.5.0 #68 (NOV)
-
-
-
- Hello
-
- I had bought the Lattice C commpiler years ago but never
- got a chance to program. I tried a simple pgm from Jamsa's
- 1001 tips (shown below), and the compiler gives an error
- message. It's asking for a DEFINE value for stub xxxx.
- I don't understand what it could be asking for. There doesn't
- seem to be any functions except for those in stdio.h.
-
- The little program is show below:
-
- -------------------------------------------------------------------
- #include <stdio.h>
-
- float average_value(int a, int b, int c)
- {
- return ((a + b + c) / 3.0);
- }
-
- void main(void)
- {
- printf("The average of 100, 133, and 155 is %f\n",
- average_value(100, 133, 155));
- }
-
- -----------------------------------------------------------------
- --
- Those who speak don't know. Those who know won't speak.
- http://www.smns.montclair.edu/~hubey hubey@pegasus.montclair.edu
-